<%--
  Created by IntelliJ IDEA.
  User: Shinelon
  Date: 2018-06-05
  Time: 8:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<link rel="stylesheet" href="${pageContext.request.contextPath}/statics/bootstrap/css/bootstrap.css"/>
<link rel="stylesheet" href="${pageContext.request.contextPath}/statics/table/bootstrap-table.min.css"/>
<script type="text/javascript" src="${pageContext.request.contextPath}/statics/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/statics/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/statics/table/bootstrap-table.min.js"></script>
<script type="text/javascript"
        src="${pageContext.request.contextPath}/statics/table/locale/bootstrap-table-zh-CN.min.js"></script>
<link rel="stylesheet" href="${pageContext.request.contextPath}/statics/date/bootstrap-datetimepicker.min.css"/>
<script type="text/javascript" src="${pageContext.request.contextPath}/statics/date/Moment.js"></script>
<script type="text/javascript"
        src="${pageContext.request.contextPath}/statics/date/bootstrap-datetimepicker.min.js"></script>

<!--mini ui-->
<%--<link href="${pageContext.request.contextPath}/statics/miniui/miniui.css" rel="stylesheet"--%>
<%--type="text/css"/>--%>
<%--<script src="${pageContext.request.contextPath}/statics/miniui/miniui.js"--%>
<%--type="text/javascript"></script>--%>
<%--sweetalert--%>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/statics/sweetalert/sweetalert.css">
<script type="text/javascript" src="${pageContext.request.contextPath}/statics/sweetalert/sweetalert.min.js"></script>


<%--win10-ui--%>
<script type="text/javascript" src="${pageContext.request.contextPath}/win10-ui/js/win10.child.js"></script>

<!--easyui-->
<link rel="stylesheet" type="text/css"
      href="${pageContext.request.contextPath}/statics/easyui/easyui.css">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/statics/easyui/icon.css">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/statics/easyui/demo.css">

<script type="text/javascript" src="${pageContext.request.contextPath}/statics/easyui/jquery.easyui.min.js"></script>

<script type="text/javascript" src="${pageContext.request.contextPath}/statics/js/WLMX.js"></script>

<script type="text/javascript">

</script>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--标题--%>
<nav class="navbar navbar-inverse" role="navigation">
    <div class="container-fluid">
        <div>
            <ul id="myTab" class="nav navbar-nav" >
                <li class="active"><a href="#home" data-toggle="tab">供货商所有单据</a></li>
                <li><a href="#gonghuoqinkuang" data-toggle="tab">供货商供货情况表</a></li>

            </ul>
        </div>
    </div>
</nav>
<br>

<%--标题内容--%>
<div id="myTabContent" class="tab-content">
    <%--供货商所有单据的内容--%>
    <div class="tab-pane fade in active" id="home">



                <%--查询--%>
                <form class="form-inline">
                    <%--按时间查询--%>
                    <div  class="input-group input-daterange">
                        <input id="firstDate" type="text" class="form-control">
                        <div class="input-group-addon">到：</div>
                        <input id="secondDate" type="text" class="form-control">
                    </div>
                    &nbsp;

                    <%--按供货商查询--%>
                    供货商名称:
                    <input id="supplierr" class="easyui-combogrid" style="width:200px" data-options="
			                    panelWidth: 500,
			                    idField: 'id',
			                    textField: 'name',

			                    url: '${pageContext.request.contextPath}/supp/query',
			                    method: 'get',
			                    columns: [[
				                        {field:'id',title:'供货商id',width:100},
				                        {field:'name',title:'供货商名称',width:150},
				                        {field:'ming',title:'联系人',width:120},
				                        {field:'phone',title:'手机号',width:180},
				                        {field:'address',title:'供货商地址',width:200},
			                    ]],
			                    fitColumns: true
		                    ">

                    <button onclick="ban()" type="button" class="btn btn-default">查询</button>
                    <button onclick="qbyi()" type="button" class="btn btn-default">查询全部</button>
                </form>
            <table id="table"></table>
    </div>

    <%--供货商供货情况表的内容--%>
    <div class="tab-pane fade" id="gonghuoqinkuang">

        <form class="form-inline">
                <%--按时间查询--%>
                <div  class="input-group input-daterange">
                    <input id="firstDate1" type="text" class="form-control">
                    <div class="input-group-addon">到：</div>
                    <input id="secondDate1" type="text" class="form-control">
                </div>
                &nbsp;

                <%--按供货商查询--%>
                供货商名称:
                <input id="t" class="easyui-combogrid" style="width:200px" data-options="
                            panelWidth: 500,
                            idField: 'id',
                            textField: 'name',

                            url: '${pageContext.request.contextPath}/supp/query',
                            method: 'get',
                            columns: [[
                                    {field:'id',title:'供货商id',width:100},
                                    {field:'name',title:'供货商名称',width:150},
                                    {field:'ming',title:'联系人',width:120},
                                    {field:'phone',title:'手机号',width:180},
                                    {field:'address',title:'供货商地址',width:200},
                            ]],
                            fitColumns: true
                        ">

                <button onclick="tome()" type="button" class="btn btn-default">查询</button>


                <button onclick="tome()" type="button" class="btn btn-default">查询全部</button>
            </form>
        <table id="syso"></table>
    </diV>


</div>
</body>
</html>
